﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleRunner
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Astronomy Library");


            DateTime dt6 = new DateTime(2010, 9, 22, 15, 30, 0);

            var julianDate = JulianDate.CalculateJulianDate(dt6);

            DateTime LST2 = Time.UniversalTimeToLocalSiderealTime(dt6, 3, Coordinates.Cardinal.West);


            Coordinates.Latitude latitude = new Coordinates.Latitude();

            latitude.Degree = 53;
            latitude.Minute = 23;
            latitude.Second = 0;

            Coordinates.Longitude longitude = new Coordinates.Longitude();

            longitude.Degree = 3;
            longitude.Minute = 0;
            longitude.Second = 0;


            Coordinates.RightAscension ra = new Coordinates.RightAscension();
            ra.Hour = 13;
            ra.Minute = 42;
            ra.Second = 11;

            double decimalRA = Coordinates.RightAscensionMinutesSecondsToDecimalRightAscension(ra.Hour, ra.Minute, ra.Second);

            Coordinates.Declination dec = new Coordinates.Declination();
            dec.Degree = 28;
            dec.Minute = 22;
            dec.Second = 38;

            double decimalDec = Coordinates.DeclinationMinutesSecondsToDecimalDeclination(dec.Degree, dec.Minute, dec.Second);

            Coordinates.Coordinate axialPrecession = Precession.CalculateAxialPrecession(ra, dec, 2000, 1875);

            var azimuth = Azimuth.CalculateAzimuth(ra, dec, LST2, latitude);

            if (azimuth >180)
            {
                Console.WriteLine("you can view this");
            }
            else
            {
                Console.WriteLine("you can NOT view this");
            }


            Console.Read();
        }
    }
}
